package com.piccolo.wrapper.client.component;

import com.piccolo.wrapper.client.component.Overlay.PTransformOverlay;

/**
 * @author Maria Patrickson
 * @version 1.0
 */
public class PTransform 
{
	private PTransformOverlay overlay;

	public PTransform()
	{
		this.overlay = PTransformOverlay.create();
	}

	public PTransform(PTransformOverlay overlay) 
	{
		this.overlay = overlay;
	}

	public void scale(double scale) 
	{ 
		overlay.scale(scale);	
	}
	
	public void translate(double x, double y)
	{
		overlay.translate(x, y);	
	}

	public PTransform getInverse() 
	{
		return overlay.getInverse();
	}

	public void rotate(double theta) 
	{
		overlay.rotate(theta);
	}
	
	public PTransformOverlay getOverlay() 
	{
		return overlay;
	}
	
	public PBounds transform(PBounds target)
	{
		return overlay.transform(target);
	}
    	
	public PPoint transform(PPoint target)
	{
		return overlay.transform(target);
	}
    	
	public PTransform transform(PTransform target)
	{		
		return overlay.transform(target);
	}
    	
	public double getScale()
	{
		return overlay.getScale();
	}
}
